package Strings;

import java.util.Scanner;

public class StringBuilderTest {

	public static void main (String args[]){
		
		StringBuilder s = new StringBuilder();
		Scanner  input = new Scanner(System.in);
		
		for(int i = 0; i < 10; i++){
			s.append(input.nextLine());
		}
		
		System.out.println(s.reverse().toString());
		
	}
}
